﻿<Window x:Class="MyTime.WPF.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:src="clr-namespace:MyTime.WPF.Units"
        SizeToContent="WidthAndHeight"
        FocusManager.FocusedElement="{Binding ElementName=whatImDoingTxtBox}"
        Title="MainWindow" Height="Auto" Width="Auto" ResizeMode="NoResize" Topmost="True" WindowStartupLocation="CenterScreen" WindowStyle="None" SnapsToDevicePixels="True" AllowsTransparency="True" Background="{x:Null}" Margin="0" ShowInTaskbar="False" >
    <Window.TaskbarItemInfo>
        <TaskbarItemInfo/>
    </Window.TaskbarItemInfo>
    <Grid HorizontalAlignment="Center" VerticalAlignment="Top"  Name="mainGrid" Margin="0" Width="450">
        <Border HorizontalAlignment="Stretch" Margin="10" VerticalAlignment="Stretch" BorderThickness="0,5,0,0" BorderBrush="#FF4B95D8"  Panel.ZIndex="1" CornerRadius="2">
            <Border.Background>
                <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                    <GradientStop Color="#FFFEFFFE" Offset="0"/>
                    <GradientStop Color="#FFDEE9F3" Offset="1"/>
                </LinearGradientBrush>
            </Border.Background>
            <Border.Effect>
                <DropShadowEffect Color="#CC000000" Opacity="0.8" ShadowDepth="2" BlurRadius="15" Direction="300"/>
            </Border.Effect>
        </Border>
        <Grid Name="ContentGrid" HorizontalAlignment="Stretch" VerticalAlignment="Top" Margin="30" Panel.ZIndex="2">
            <Grid.RowDefinitions>
                <RowDefinition Height="20" Name="RowToolbar" />
                <RowDefinition Height="32" Name="RowHeading" />
                <RowDefinition Height="*" Name="RowInputText" />
                <RowDefinition Height="*" Name="RowSettings" />
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="*" />
            </Grid.ColumnDefinitions>
            <Image Name="CloseBtn" Grid.Row="0" Cursor="Hand" HorizontalAlignment="Right"  VerticalAlignment="Top" Source="Images\cancel.png" Stretch="Uniform" Width="24" Height="24" Opacity="0.5" MouseLeftButtonDown="CloseBtn_MouseLeftButtonDown"  />
            <DockPanel Grid.Row="1" HorizontalAlignment="Stretch" Width="Auto">
                <Label Name="questionLabel" Content="What are you doing now?" FontSize="16"  FontFamily="Segoe WP Light" Foreground="#FF333333" />
                <!--<Image Name="SettingsBtn" DockPanel.Dock="Right" Cursor="Hand" HorizontalAlignment="Right"  VerticalAlignment="Center" Source="Images\settings.png" Stretch="None"  Opacity="0.5" MouseLeftButtonDown="SettingsBtn_MouseLeftButtonDown"  />-->
            </DockPanel>
            <TextBox Visibility="Visible" Focusable="True" Name="whatImDoingTxtBox" Grid.Row="2" Text="" FontFamily="Segoe WP Light" FontSize="35" Background="{x:Null}" BorderBrush="#FF333333" SelectionBrush="#FF4B95D8" Foreground="#FF333333" SelectionOpacity="0.4" ToolTip="Write what you are doing right now" KeyDown="whatImDoingTxtBox_KeyDown" GotFocus="whatImDoingTxtBox_GotFocus" BorderThickness="0,0,0,1" />
            <Grid Grid.Row="3" Height="Auto" HorizontalAlignment="Stretch" Name="SettingsGrid" Margin="0,20,0,0" Visibility="Visible">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="120" />
                    <ColumnDefinition Width="*" />
                </Grid.ColumnDefinitions>
                <Grid.RowDefinitions>
                    <RowDefinition Height="40" Name="RowInterval" />
                    <RowDefinition Height="40" Name="RowSource"/>
                    <RowDefinition Height="40" Name="RowAutostart"/>
                    <RowDefinition Height="40" Name="RowBackup" />
                    <RowDefinition Height="40" Name="RowSave" />
                </Grid.RowDefinitions>
                <!--Labels-->
                <Label Grid.Column="0" Grid.Row="0" Content="Interval" FontFamily="Segoe WP" FontSize="16" />
                <Label Grid.Column="0" Grid.Row="1" Content="Import" FontFamily="Segoe WP" FontSize="16" />
                <Label Grid.Column="0" Grid.Row="2" Content="Autostart" FontFamily="Segoe WP" FontSize="16" />
     
                <TextBox    Name="IntervalTxtBox"  Grid.Column="1" Grid.Row="0" Text="60" FontFamily="Segoe WP" FontSize="16" Background="{x:Null}" BorderBrush="#FF333333" BorderThickness="0,0,0,1" VerticalAlignment="Center" />
                <Button    Name="BrowseSrcBtn" Grid.Column="1" Grid.Row="1" Content="Import old csv" FontFamily="Segoe WP"  FontSize="16" BorderBrush="#FF333333" BorderThickness="0,0,0,1" VerticalAlignment="Center" Click="sourceFileBrowserBtn_Click" />
                <!--<Button     Name="BrowseSrcBtn"  Grid.Column="1" Grid.Row="1" Width="25" Height="20" HorizontalAlignment="Right" Content="..." Click="sourceFileBrowserBtn_Click" FontFamily="Segoe WP"/>-->
                <CheckBox   Name="AutostartChckBox" Grid.Column="1" Grid.Row="2" VerticalAlignment="Center" HorizontalAlignment="Left" Content="(Will start with windows)" FontSize="12" FontFamily="Segoe WP" />
                <ProgressBar   Visibility="Collapsed"  Name="ProgBar" Grid.Column="1" Grid.Row="3" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Height="20" Width="Auto" ClipToBounds="True" FlowDirection="LeftToRight" />
                <Button     Name="SaveBtn" Grid.Column="1" Grid.Row="4" VerticalAlignment="Center" HorizontalAlignment="Right" Content="Save" FontSize="16" FontFamily="Segoe WP" Click="SaveBtn_Click" />
            </Grid>
        
        </Grid>
    </Grid>
    <Window.Resources>
        <ContextMenu x:Key="NotifierContextMenu" Placement="MousePoint">
            <MenuItem Header="Report now"   Click="MenuItemReportNow_Click" />
            <MenuItem Header="Summary"      Click="MenuItemSummary_Click" />
            <MenuItem Header="Settings"     Click="MenuItemSettings_Click" />
            <MenuItem Header="Exit"         Click="MenuItemExit_Click" />
        </ContextMenu>
    </Window.Resources>
</Window>
